package com.hzncc.flowable_diboot.entity.contractmanage;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.lang.Double;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.diboot.core.util.D;
import com.diboot.core.entity.BaseModel;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 收汇管理 Entity 定义
* @author MyName
* @version 1.0
* @date 2025-01-07
* Copyright © MyCorp
*/
@TableName("mdl_foreign_collection")
@Getter @Setter @Accessors(chain = true)
public class ForeignCollection extends BaseModel {
    private static final long serialVersionUID = 1387068180575755234L;
     /**
     * 租户
     */
     @NotNull(message = "租户不能为空")
     @TableField()
     private String tenantId;

     /**
     * 收汇时间
     */
     @TableField()
     private LocalDate collectionTime;

     /**
     * 收汇金额
     */
     @TableField()
     private BigDecimal collectionAmount;

     /**
     * 单位
     */
     @Length(max=100, message="单位长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String company;

     /**
     * 收汇附件
     */
     @Length(max=100, message="收汇附件长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String collectionFile;

     /**
     * 币种
     */
     @TableField()
     private String currency;

     /**
     * 汇率
     */
     @Length(max=100, message="汇率长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String exchangeRate;

     /**
     * 备注
     */
     @Length(max=100, message="备注长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String remark;


}